package models

type LessonStudent struct {
	LessonId  int `json:"lessonId" gorm:"column:lesson_id;foreignKey:lesson_id;references:lesson.id"`
	StudentId int `json:"studentId"  gorm:"column:student_id;foreignKey:student_id;references:student.id"`
}

func (LessonStudent) TableName() string {
	return "lesson_student"
}

//type LessonStudentDto struct {
//	LessonId  int `json:"lessonId" gorm:"column:lesson_id;foreignKey:lesson_id;references:lesson.id"`
//	StudentId int `json:"studentId"  gorm:"column:student_id;foreignKey:student_id;references:student.id"`
//}
//
//func (LessonStudentDto) TableName() string {
//	return "lesson_student"
//}
